package com.ggk911.pharmacy_system.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ggk911.pharmacy_system.entity.Purchase;
import com.ggk911.pharmacy_system.mapper.PurchaseMapper;
import com.ggk911.pharmacy_system.service.IPurchaseService;
import org.springframework.stereotype.Service;

/**
 * @author ggk-911
 * @version 1.0 2023/3/20 9:47
 */
@Service
public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchase> implements IPurchaseService {
    /**
     * 增强翻页查询
     *
     * @param page
     * @param queryWrapper
     * @param <E>
     * @return
     */
    @Override
    public <E extends IPage<Purchase>> E page(E page, Wrapper<Purchase> queryWrapper) {
        return baseMapper.selectPage(page, queryWrapper);
    }
}
